package com.huatai.datacenter.entity.datamodel;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author gusiyi
 * @version 1.0
 * @className DataModelApplyEntity
 * @description 描述：
 * @date 2023/5/26 16:41
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_data_model_apply")
@ApiModel(value = "数据模型应用实体类",description = "数据模型应用实体类")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DataModelApplyEntity extends DataModelBaseEntity{

	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@ApiModelProperty("数据模型应用id")
	private Long id;

	@ApiModelProperty(value = "数据模型id",required = true)
	@NotNull(message = "数据模型id不能为空")
	private Long dataModelId;

	@ApiModelProperty(value = "数据模型名称",required = true)
	@NotBlank(message = "数据模型名称不能为空")
	private String dataModelName;

	@ApiModelProperty(value = "数据模型应用维度编码")
	private Integer applyTypeNum;

	@ApiModelProperty(value = "数据模型应用维度名称",required = true)
	@NotBlank(message = "应用维度名称不能为空")
	private String applyTypeName;

	@ApiModelProperty(value = "数据模型应用内容id",required = true)
	@NotBlank(message = "应用内容id不能为空")
	private Long applyId;

	@ApiModelProperty(value = "数据模型应用内容",required = true)
	@NotBlank(message = "应用内容不能为空")
	private String applyName;



}
